#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QTimer>

QT_BEGIN_NAMESPACE
namespace Ui { class Dialog; }
QT_END_NAMESPACE

class RandomRunner : public QDialog
{
    Q_OBJECT

public:
    RandomRunner(int people, int runtimer_interval, double stoptimer_min_interval,
           double stoptimer_max_interval, QWidget *parent = nullptr);
    ~RandomRunner();

private slots:
    void on_pushButton_clicked();
    void run();
    void stop();

private:
    Ui::Dialog *ui;
    int result, people, runtimer_interval;
    double stoptimer_min_interval, stoptimer_max_interval;
    QTimer runtimer, stoptimer;
};
#endif // DIALOG_H
